package com.microservice.salmon.service.goods.specifications;


import com.microservice.salmon.db.entities.SpecificationsGroup;
import com.microservice.salmon.db.entities.SpecificationsItem;

import java.util.List;

public interface SpecificationsService {

    List<SpecificationsGroup> queryGroupByCategoryId(Integer categoryId);

    /**
     * 获取规格项（规格参数)
     * @param groupId 规格组的ID
     * @return
     */
    List<SpecificationsItem> querySpecItemBySpecGroup(Integer groupId);

    int deleteSpecParam(Integer id);

    int modifySpecParam(SpecificationsItem specificationsItem);

    int add(SpecificationsItem specificationsItem);
}
